//
//  IGUrlArgumentsFilter.m
//  jingdongfang
//
//  Created by BOE on 2017/8/10.
//  Copyright © 2017年 ZhiYu Hao. All rights reserved.
//

#import "IGUrlArgumentsFilter.h"
#import "NSObject+IGUrlAppendPara.h"

@implementation IGUrlArgumentsFilter {
    NSDictionary *_arguments;
}

+ (IGUrlArgumentsFilter *)filterWithArguments:(NSDictionary *)arguments {
    return [[self alloc] initWithArguments:arguments];
}

- (id)initWithArguments:(NSDictionary *)arguments {
    self = [super init];
    if (self) {
        _arguments = arguments;
    }
    return self;
}

#pragma mark -YTKUrlFilterProtocol
- (NSString *)filterUrl:(NSString *)originUrl withRequest:(YTKBaseRequest *)request {
    
    return [IGUrlArgumentsFilter urlStringWithOriginUrlString:originUrl appendParameters:_arguments];
    
}

@end















